home *** CD-ROM | disk | FTP | other *** search
- Path: dsi.unimi.it!moreld
- From: moreld@dsi.unimi.it (~ZIO BUDDA~)
- Newsgroups: comp.lang.c++
- Subject: waning : const discard
- Date: 18 Mar 1996 15:03:28 GMT
- Organization: Computer Science Dep. - Milan University
- Message-ID: <4iju00$m68@tic.sm.dsi.unimi.it>
- NNTP-Posting-Host: tac.fddi.dsi.unimi.it
- X-Newsreader: TIN [version 1.2 PL2]
-
- Hi, my question is :
- I use g++ 2.7.0 and the default Class String, but when I use in a program
- a line like
- XDrawString(CXDisplay, CXWindow, CXGC, x, y, stringa, strlen(stringa));
-
- if I use stringa like char * all is ok, but if a say that stringa is a
- variable of Class String (aka String stringa;) the compiler
- return me a warning that say me that the const is discard.
- Ok this is a warning, but I hate this warning. Help, this is for an exam
- and my prof hate warning.
-
- tnx in advance and sorry for my bad english
-
-
- --
- Zio Budda "sempre alla ricerca di un account..." moreld@ghost.dsi.unimi.it
- http://www.dsi.unimi.it/Users/Students/moreld/home.html
- Ask me for questions about LINUX and Games for PC, and see my home page
- I'm a programmer and a consultant...
-
- Tel. 02/2139959 ... Chiedere di Davide Michel
-